package com.paper.tiger.easy.rpc.resource;

import com.paper.tiger.easy.rpc.annotation.AsyncCall;
import com.paper.tiger.easy.rpc.annotation.AyncMethod;
import com.paper.tiger.easy.rpc.annotation.Remote;

/**
 * [简要描述]:
 * [详细描述]:
 *
 * @author ZouHaiBo
 * @version 1.0, 2021/5/31 13:54
 * @since JDK 1.8
 */
@Remote
public interface TestInter
{

     String test(String abc);

     /**
      *  test 方法异步调用，调用test 方法之后，结果返回在TestInnerSync接口的实现中展示
      * @param abc
      */
     @AyncMethod(callClass = TestInnerSync.class, methodName = "test")
     default void testAsync(String abc){}

     /**
      *  异步回调接口，实现此接口可以异步收到消息
      */
     interface TestInnerSync extends AsyncCall<String>
     {}

}
